if Variable VC14_30_30704_RTM_X64 Equals TRUE
  Set Variable PROGRESSTEXT to Installing Microsoft Visual C++ Runtime for Visual Studio 2022 v.17 (x64)
  Set Variable PROGRESSMODE to MARQUEE
   
  Set x64 - Native 64 bit Windows, AMD64, EM64T, and ARM64 Architectures - installation mode
  Set Variable VC14_30_30704_FILES_X64 to 
  Set Variable VC14_30_30704_RESULT_X64 to 
  Define File Bag : #IADIR#\runtimes\VC14_30_30704_x64\*.*, get runtime location of files into variable VC14_30_30704_FILES_X64
  Run Program $VC14_30_30704_FILES_X64$\VC_redist.x64.exe /install /norestart /quiet (WAIT, get result into variable VC14_30_30704_RESULT_X64)
  if Variable VC14_30_30704_RESULT_X64 Equals 3010
    MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
    if Variable REBOOTNOW Equals OK
      Reboot Computer and Resume Setup
    else
      Terminate Installation
    end
  else
    if Variable VC14_30_30704_RESULT_X64 Equals 23
      MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
      if Variable REBOOTNOW Equals OK
        Reboot Computer and Resume Setup
      else
        Terminate Installation
      end
    else
      if Variable VC14_30_30704_RESULT_X64 not Equals 0
        MessageBox: $TITLE$ Setup, Microsoft Visual C++ Runtime for Visual Studio 2022 v.11 (x64) could not be installed. $VC14_30_30704_RESULT_X64$$NEWLINE$$NEWLINE$Please use Windows Update to manually install this update on your system.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
        Terminate Installation
      end
    end
  end
  Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
  Set Variable PROGRESSMODE to 
end
 
